// ex3_2.cpp: one feet equal to 12 inches,
// one inch equal to 0.0254 meter.
#include <iostream>

int main(void)
{
	using namespace std;
	float inch1, feet1, meter1, weight1, bmi;
	 
	const float inchunit = 12.0;    // one feet equal to 12 inches,
	const float meterunit = 0.0254;    // one inch equal to 0.0254 meter.
	const float weightunit = 2.2;    // one kilo equal to 2.2 pound

	cout << "Enter your height:(:feet inch)";
	cin >> feet1 >> inch1;
	cout << "Enter your weight:(:pound)";
	cin >> weight1;

    inch1 = feet1 * inchunit + inch1;
    meter1 = inch1 * meterunit;
	cout << "Your height is " << meter1 << " meters." << endl;

	weight1 = weight1 / weightunit;
	cout << "Your weight is " << weight1 << " kilos." << endl;
	bmi = weight1 / (meter1 * meter1);
    
    cout << "Your BMI is : " << bmi << endl;
}